.class public Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;
.super Lcom/esfile/screen/recorder/base/BaseFragment;
.source "ImagePreviewFragment.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment$e;
    }
.end annotation


# instance fields
.field private c:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field private d:Landroidx/viewpager/widget/ViewPager;

.field private e:Lcom/esfile/screen/recorder/picture/picker/adapter/ImagePagerAdapter;

.field private f:I

.field private g:I

.field private h:I

.field private i:I

.field private j:Z

.field private k:I

.field private l:Landroid/view/View$OnClickListener;

.field private m:Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment$e;


# direct methods
.method public constructor <init>()V
    .locals 2

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/base/BaseFragment;-><init>()V

    const/4 v0, 0x0

    .line 2
    iput v0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;->f:I

    .line 3
    iput v0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;->g:I

    .line 4
    iput v0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;->h:I

    .line 5
    iput v0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;->i:I

    .line 6
    iput-boolean v0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;->j:Z

    .line 7
    new-instance v1, Landroid/graphics/ColorMatrix;

    invoke-direct {v1}, Landroid/graphics/ColorMatrix;-><init>()V

    .line 8
    iput v0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;->k:I

    return-void
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;I)I
    .locals 0

    .line 2
    iput p1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;->g:I

    return p1
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;)Landroid/view/View$OnClickListener;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;->l:Landroid/view/View$OnClickListener;

    return-object p0
.end method

.method public static a(Ljava/util/List;I)Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;
    .locals 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;I)",
            "Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;"
        }
    .end annotation

    .line 4
    new-instance v0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;

    invoke-direct {v0}, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;-><init>()V

    .line 5
    new-instance v1, Landroid/os/Bundle;

    invoke-direct {v1}, Landroid/os/Bundle;-><init>()V

    if-eqz p0, :cond_0

    .line 6
    invoke-interface {p0}, Ljava/util/List;->size()I

    move-result v2

    new-array v2, v2, [Ljava/lang/String;

    invoke-interface {p0, v2}, Ljava/util/List;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;

    move-result-object p0

    check-cast p0, [Ljava/lang/String;

    const-string v2, "PATHS"

    invoke-virtual {v1, v2, p0}, Landroid/os/Bundle;->putStringArray(Ljava/lang/String;[Ljava/lang/String;)V

    :cond_0
    const-string p0, "ARG_CURRENT_ITEM"

    .line 7
    invoke-virtual {v1, p0, p1}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    const/4 p0, 0x0

    const-string p1, "HAS_ANIM"

    .line 8
    invoke-virtual {v1, p1, p0}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V

    .line 9
    invoke-virtual {v0, v1}, Landroidx/fragment/app/Fragment;->setArguments(Landroid/os/Bundle;)V

    return-object v0
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;Z)Z
    .locals 0

    .line 3
    iput-boolean p1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;->j:Z

    return p1
.end method

.method static synthetic b(Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;I)I
    .locals 0

    .line 2
    iput p1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;->f:I

    return p1
.end method

.method static synthetic b(Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;)Landroidx/viewpager/widget/ViewPager;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;->d:Landroidx/viewpager/widget/ViewPager;

    return-object p0
.end method

.method static synthetic c(Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;)I
    .locals 0

    .line 1
    iget p0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;->g:I

    return p0
.end method

.method static synthetic d(Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;)I
    .locals 0

    .line 1
    iget p0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;->f:I

    return p0
.end method

.method static synthetic e(Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;->j()V

    return-void
.end method

.method static synthetic f(Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;)I
    .locals 0

    .line 1
    iget p0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;->k:I

    return p0
.end method

.method static synthetic g(Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;)Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment$e;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;->m:Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment$e;

    return-object p0
.end method

.method static synthetic h(Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;)Lcom/esfile/screen/recorder/picture/picker/adapter/ImagePagerAdapter;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;->e:Lcom/esfile/screen/recorder/picture/picker/adapter/ImagePagerAdapter;

    return-object p0
.end method

.method private j()V
    .locals 6

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;->d:Landroidx/viewpager/widget/ViewPager;

    const/4 v1, 0x0

    invoke-static {v0, v1}, Landroidx/core/view/ViewCompat;->setPivotX(Landroid/view/View;F)V

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;->d:Landroidx/viewpager/widget/ViewPager;

    invoke-static {v0, v1}, Landroidx/core/view/ViewCompat;->setPivotY(Landroid/view/View;F)V

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;->d:Landroidx/viewpager/widget/ViewPager;

    iget v2, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;->h:I

    int-to-float v2, v2

    invoke-virtual {v0}, Landroid/view/ViewGroup;->getWidth()I

    move-result v3

    int-to-float v3, v3

    div-float/2addr v2, v3

    invoke-static {v0, v2}, Landroidx/core/view/ViewCompat;->setScaleX(Landroid/view/View;F)V

    .line 4
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;->d:Landroidx/viewpager/widget/ViewPager;

    iget v2, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;->i:I

    int-to-float v2, v2

    invoke-virtual {v0}, Landroid/view/ViewGroup;->getHeight()I

    move-result v3

    int-to-float v3, v3

    div-float/2addr v2, v3

    invoke-static {v0, v2}, Landroidx/core/view/ViewCompat;->setScaleY(Landroid/view/View;F)V

    .line 5
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;->d:Landroidx/viewpager/widget/ViewPager;

    iget v2, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;->g:I

    int-to-float v2, v2

    invoke-static {v0, v2}, Landroidx/core/view/ViewCompat;->setTranslationX(Landroid/view/View;F)V

    .line 6
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;->d:Landroidx/viewpager/widget/ViewPager;

    iget v2, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;->f:I

    int-to-float v2, v2

    invoke-static {v0, v2}, Landroidx/core/view/ViewCompat;->setTranslationY(Landroid/view/View;F)V

    .line 7
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;->d:Landroidx/viewpager/widget/ViewPager;

    invoke-virtual {v0}, Landroid/view/ViewGroup;->animate()Landroid/view/ViewPropertyAnimator;

    move-result-object v0

    const-wide/16 v2, 0xc8

    .line 8
    invoke-virtual {v0, v2, v3}, Landroid/view/ViewPropertyAnimator;->setDuration(J)Landroid/view/ViewPropertyAnimator;

    move-result-object v0

    const/high16 v4, 0x3f800000    # 1.0f

    .line 9
    invoke-virtual {v0, v4}, Landroid/view/ViewPropertyAnimator;->scaleX(F)Landroid/view/ViewPropertyAnimator;

    move-result-object v0

    .line 10
    invoke-virtual {v0, v4}, Landroid/view/ViewPropertyAnimator;->scaleY(F)Landroid/view/ViewPropertyAnimator;

    move-result-object v0

    .line 11
    invoke-virtual {v0, v1}, Landroid/view/ViewPropertyAnimator;->translationX(F)Landroid/view/ViewPropertyAnimator;

    move-result-object v0

    .line 12
    invoke-virtual {v0, v1}, Landroid/view/ViewPropertyAnimator;->translationY(F)Landroid/view/ViewPropertyAnimator;

    move-result-object v0

    new-instance v1, Landroid/view/animation/DecelerateInterpolator;

    invoke-direct {v1}, Landroid/view/animation/DecelerateInterpolator;-><init>()V

    .line 13
    invoke-virtual {v0, v1}, Landroid/view/ViewPropertyAnimator;->setInterpolator(Landroid/animation/TimeInterpolator;)Landroid/view/ViewPropertyAnimator;

    .line 14
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;->d:Landroidx/viewpager/widget/ViewPager;

    invoke-virtual {v0}, Landroid/view/ViewGroup;->getBackground()Landroid/graphics/drawable/Drawable;

    move-result-object v0

    const/4 v1, 0x2

    new-array v4, v1, [I

    fill-array-data v4, :array_0

    const-string v5, "alpha"

    invoke-static {v0, v5, v4}, Landroid/animation/ObjectAnimator;->ofInt(Ljava/lang/Object;Ljava/lang/String;[I)Landroid/animation/ObjectAnimator;

    move-result-object v0

    .line 15
    invoke-virtual {v0, v2, v3}, Landroid/animation/ObjectAnimator;->setDuration(J)Landroid/animation/ObjectAnimator;

    .line 16
    invoke-virtual {v0}, Landroid/animation/ObjectAnimator;->start()V

    new-array v0, v1, [F

    .line 17
    fill-array-data v0, :array_1

    const-string v1, "saturation"

    invoke-static {p0, v1, v0}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator;

    move-result-object v0

    .line 18
    invoke-virtual {v0, v2, v3}, Landroid/animation/ObjectAnimator;->setDuration(J)Landroid/animation/ObjectAnimator;

    .line 19
    invoke-virtual {v0}, Landroid/animation/ObjectAnimator;->start()V

    return-void

    nop

    :array_0
    .array-data 4
        0x0
        0xff
    .end array-data

    :array_1
    .array-data 4
        0x0
        0x3f800000    # 1.0f
    .end array-data
.end method


# virtual methods
.method public a(Landroid/view/View$OnClickListener;)V
    .locals 0

    .line 10
    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;->l:Landroid/view/View$OnClickListener;

    return-void
.end method

.method public a(Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment$e;)V
    .locals 0

    .line 11
    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;->m:Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment$e;

    return-void
.end method

.method public a(Ljava/lang/Runnable;)V
    .locals 6

    .line 12
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getArguments()Landroid/os/Bundle;

    move-result-object v0

    const/4 v1, 0x0

    const-string v2, "HAS_ANIM"

    invoke-virtual {v0, v2, v1}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;Z)Z

    move-result v0

    if-eqz v0, :cond_1

    iget-boolean v0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;->j:Z

    if-nez v0, :cond_0

    goto :goto_0

    .line 13
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;->d:Landroidx/viewpager/widget/ViewPager;

    invoke-virtual {v0}, Landroid/view/ViewGroup;->animate()Landroid/view/ViewPropertyAnimator;

    move-result-object v0

    const-wide/16 v2, 0xc8

    .line 14
    invoke-virtual {v0, v2, v3}, Landroid/view/ViewPropertyAnimator;->setDuration(J)Landroid/view/ViewPropertyAnimator;

    move-result-object v0

    new-instance v4, Landroid/view/animation/AccelerateInterpolator;

    invoke-direct {v4}, Landroid/view/animation/AccelerateInterpolator;-><init>()V

    .line 15
    invoke-virtual {v0, v4}, Landroid/view/ViewPropertyAnimator;->setInterpolator(Landroid/animation/TimeInterpolator;)Landroid/view/ViewPropertyAnimator;

    move-result-object v0

    iget v4, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;->h:I

    int-to-float v4, v4

    iget-object v5, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;->d:Landroidx/viewpager/widget/ViewPager;

    .line 16
    invoke-virtual {v5}, Landroid/view/ViewGroup;->getWidth()I

    move-result v5

    int-to-float v5, v5

    div-float/2addr v4, v5

    invoke-virtual {v0, v4}, Landroid/view/ViewPropertyAnimator;->scaleX(F)Landroid/view/ViewPropertyAnimator;

    move-result-object v0

    iget v4, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;->i:I

    int-to-float v4, v4

    iget-object v5, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;->d:Landroidx/viewpager/widget/ViewPager;

    .line 17
    invoke-virtual {v5}, Landroid/view/ViewGroup;->getHeight()I

    move-result v5

    int-to-float v5, v5

    div-float/2addr v4, v5

    invoke-virtual {v0, v4}, Landroid/view/ViewPropertyAnimator;->scaleY(F)Landroid/view/ViewPropertyAnimator;

    move-result-object v0

    iget v4, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;->g:I

    int-to-float v4, v4

    .line 18
    invoke-virtual {v0, v4}, Landroid/view/ViewPropertyAnimator;->translationX(F)Landroid/view/ViewPropertyAnimator;

    move-result-object v0

    iget v4, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;->f:I

    int-to-float v4, v4

    .line 19
    invoke-virtual {v0, v4}, Landroid/view/ViewPropertyAnimator;->translationY(F)Landroid/view/ViewPropertyAnimator;

    move-result-object v0

    new-instance v4, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment$d;

    invoke-direct {v4, p0, p1}, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment$d;-><init>(Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;Ljava/lang/Runnable;)V

    .line 20
    invoke-virtual {v0, v4}, Landroid/view/ViewPropertyAnimator;->setListener(Landroid/animation/Animator$AnimatorListener;)Landroid/view/ViewPropertyAnimator;

    .line 21
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;->d:Landroidx/viewpager/widget/ViewPager;

    invoke-virtual {p1}, Landroid/view/ViewGroup;->getBackground()Landroid/graphics/drawable/Drawable;

    move-result-object p1

    const/4 v0, 0x1

    new-array v0, v0, [I

    aput v1, v0, v1

    const-string v1, "alpha"

    invoke-static {p1, v1, v0}, Landroid/animation/ObjectAnimator;->ofInt(Ljava/lang/Object;Ljava/lang/String;[I)Landroid/animation/ObjectAnimator;

    move-result-object p1

    .line 22
    invoke-virtual {p1, v2, v3}, Landroid/animation/ObjectAnimator;->setDuration(J)Landroid/animation/ObjectAnimator;

    .line 23
    invoke-virtual {p1}, Landroid/animation/ObjectAnimator;->start()V

    const/4 p1, 0x2

    new-array p1, p1, [F

    .line 24
    fill-array-data p1, :array_0

    const-string v0, "saturation"

    .line 25
    invoke-static {p0, v0, p1}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator;

    move-result-object p1

    .line 26
    invoke-virtual {p1, v2, v3}, Landroid/animation/ObjectAnimator;->setDuration(J)Landroid/animation/ObjectAnimator;

    .line 27
    invoke-virtual {p1}, Landroid/animation/ObjectAnimator;->start()V

    return-void

    .line 28
    :cond_1
    :goto_0
    invoke-interface {p1}, Ljava/lang/Runnable;->run()V

    return-void

    nop

    :array_0
    .array-data 4
        0x3f800000    # 1.0f
        0x0
    .end array-data
.end method

.method public f()I
    .locals 1

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;->d:Landroidx/viewpager/widget/ViewPager;

    invoke-virtual {v0}, Landroidx/viewpager/widget/ViewPager;->getCurrentItem()I

    move-result v0

    return v0
.end method

.method public g()Ljava/util/ArrayList;
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/ArrayList<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;->c:Ljava/util/ArrayList;

    return-object v0
.end method

.method public i()Landroidx/viewpager/widget/ViewPager;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;->d:Landroidx/viewpager/widget/ViewPager;

    return-object v0
.end method

.method public onCreate(Landroid/os/Bundle;)V
    .locals 2

    .line 1
    invoke-super {p0, p1}, Lcom/esfile/screen/recorder/base/BaseFragment;->onCreate(Landroid/os/Bundle;)V

    .line 2
    new-instance p1, Ljava/util/ArrayList;

    invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V

    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;->c:Ljava/util/ArrayList;

    .line 3
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getArguments()Landroid/os/Bundle;

    move-result-object p1

    if-eqz p1, :cond_1

    const-string v0, "PATHS"

    .line 4
    invoke-virtual {p1, v0}, Landroid/os/Bundle;->getStringArray(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v0

    .line 5
    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;->c:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->clear()V

    if-eqz v0, :cond_0

    .line 6
    new-instance v1, Ljava/util/ArrayList;

    invoke-static {v0}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;

    move-result-object v0

    invoke-direct {v1, v0}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V

    iput-object v1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;->c:Ljava/util/ArrayList;

    :cond_0
    const-string v0, "HAS_ANIM"

    .line 7
    invoke-virtual {p1, v0}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;)Z

    move-result v0

    iput-boolean v0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;->j:Z

    const-string v0, "ARG_CURRENT_ITEM"

    .line 8
    invoke-virtual {p1, v0}, Landroid/os/Bundle;->getInt(Ljava/lang/String;)I

    move-result v0

    iput v0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;->k:I

    const-string v0, "THUMBNAIL_TOP"

    .line 9
    invoke-virtual {p1, v0}, Landroid/os/Bundle;->getInt(Ljava/lang/String;)I

    move-result v0

    iput v0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;->f:I

    const-string v0, "THUMBNAIL_LEFT"

    .line 10
    invoke-virtual {p1, v0}, Landroid/os/Bundle;->getInt(Ljava/lang/String;)I

    move-result v0

    iput v0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;->g:I

    const-string v0, "THUMBNAIL_WIDTH"

    .line 11
    invoke-virtual {p1, v0}, Landroid/os/Bundle;->getInt(Ljava/lang/String;)I

    move-result v0

    iput v0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;->h:I

    const-string v0, "THUMBNAIL_HEIGHT"

    .line 12
    invoke-virtual {p1, v0}, Landroid/os/Bundle;->getInt(Ljava/lang/String;)I

    move-result p1

    iput p1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;->i:I

    .line 13
    :cond_1
    new-instance p1, Lcom/esfile/screen/recorder/picture/picker/adapter/ImagePagerAdapter;

    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;->c:Ljava/util/ArrayList;

    invoke-direct {p1, v0}, Lcom/esfile/screen/recorder/picture/picker/adapter/ImagePagerAdapter;-><init>(Ljava/util/List;)V

    iput-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;->e:Lcom/esfile/screen/recorder/picture/picker/adapter/ImagePagerAdapter;

    .line 14
    iget v0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;->k:I

    invoke-virtual {p1, v0}, Lcom/esfile/screen/recorder/picture/picker/adapter/ImagePagerAdapter;->a(I)V

    .line 15
    iget-object p1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;->e:Lcom/esfile/screen/recorder/picture/picker/adapter/ImagePagerAdapter;

    new-instance v0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment$a;

    invoke-direct {v0, p0}, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment$a;-><init>(Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;)V

    invoke-virtual {p1, v0}, Lcom/esfile/screen/recorder/picture/picker/adapter/ImagePagerAdapter;->a(Landroid/view/View$OnClickListener;)V

    return-void
.end method

.method public onCreateView(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
    .locals 2
    .annotation build Landroidx/annotation/Nullable;
    .end annotation

    .line 1
    sget v0, Les/y4;->__picker_picker_fragment_image_pager:I

    const/4 v1, 0x0

    invoke-virtual {p1, v0, p2, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object p1

    .line 2
    sget v0, Les/x4;->vp_photos:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroidx/viewpager/widget/ViewPager;

    iput-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;->d:Landroidx/viewpager/widget/ViewPager;

    .line 3
    iget-object v1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;->e:Lcom/esfile/screen/recorder/picture/picker/adapter/ImagePagerAdapter;

    invoke-virtual {v0, v1}, Landroidx/viewpager/widget/ViewPager;->setAdapter(Landroidx/viewpager/widget/PagerAdapter;)V

    .line 4
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;->d:Landroidx/viewpager/widget/ViewPager;

    iget v1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;->k:I

    invoke-virtual {v0, v1}, Landroidx/viewpager/widget/ViewPager;->setCurrentItem(I)V

    .line 5
    invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;

    move-result-object v0

    check-cast v0, Lcom/esfile/screen/recorder/picture/picker/MediaPreviewActivity;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/picture/picker/MediaPreviewActivity;->w()V

    .line 6
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;->d:Landroidx/viewpager/widget/ViewPager;

    const/4 v1, 0x3

    invoke-virtual {v0, v1}, Landroidx/viewpager/widget/ViewPager;->setOffscreenPageLimit(I)V

    .line 7
    iget-object v0, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;->m:Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment$e;

    if-eqz v0, :cond_0

    .line 8
    iget v1, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;->k:I

    invoke-interface {v0, v1}, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment$e;->a(I)V

    :cond_0
    if-nez p3, :cond_1

    .line 9
    iget-boolean p3, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;->j:Z

    if-eqz p3, :cond_1

    .line 10
    iget-object p3, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;->d:Landroidx/viewpager/widget/ViewPager;

    invoke-virtual {p3}, Landroid/view/ViewGroup;->getViewTreeObserver()Landroid/view/ViewTreeObserver;

    move-result-object p3

    .line 11
    new-instance v0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment$b;

    invoke-direct {v0, p0}, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment$b;-><init>(Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;)V

    invoke-virtual {p3, v0}, Landroid/view/ViewTreeObserver;->addOnPreDrawListener(Landroid/view/ViewTreeObserver$OnPreDrawListener;)V

    .line 12
    :cond_1
    iget-object p3, p0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;->d:Landroidx/viewpager/widget/ViewPager;

    new-instance v0, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment$c;

    invoke-direct {v0, p0, p2}, Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment$c;-><init>(Lcom/esfile/screen/recorder/picture/picker/fragment/ImagePreviewFragment;Landroid/view/ViewGroup;)V

    invoke-virtual {p3, v0}, Landroidx/viewpager/widget/ViewPager;->addOnPageChangeListener(Landroidx/viewpager/widget/ViewPager$OnPageChangeListener;)V

    return-object p1
.end method
